package com.king.security.enums;

import lombok.Getter;

/**
 * @description:
 * @author: HHJ
 * @create: 2019-09-27 13:47
 **/
@Getter
public enum RedisKeyEnum {

    LOGIN_USER("SECURITY:LOGIN_USER:", 0L, "登录用户缓存"),

    IDEMPOTENT_DATA("SECURITY:IDEMPOTENT_DATA:", 60L * 10L, "幂等验证");

    /**
     * 缓存前缀
     */
    private String prefix;

    /**
     * 缓存时效
     */
    private Long dateTime;

    /**
     * 备注
     */
    private String remark;

    RedisKeyEnum(String prefix, Long dateTime, String remark) {
        this.prefix = prefix;
        this.dateTime = dateTime;
        this.remark = remark;
    }

}
